package com.atguigu.gmall.service.impl;

import com.atguigu.gmall.bean.UserAddress;
import com.atguigu.gmall.service.UserService;


import java.util.List;

/**
 * @author jingjintao
 * @date 2021/8/22 - 18:02
 **/
public class UserServiceStub implements UserService {

    private final UserService userService;

    public UserServiceStub(UserService userService) {
        this.userService = userService;
    }

    @Override
    public List<UserAddress> getUserAddressList(String userId) {
        System.out.println("UserServiceStub......本地存根");
        if(userId != null){
            return userService.getUserAddressList(userId);
        }
        return null;
    }
}
